package com.lsh.service;

import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author ：LiuShihao
 * @date ：Created in 2020/11/6 4:26 下午
 * @desc ：
 */
@Component
public class UserServiceImpl implements UserService{
    @Override
    public String callDept() {
        return "{\n" +
                "\"code\":\"callDept404\",\n" +
                "\"msg\":\"Feign熔断返回\"\n" +
                "}";
    }

    @Override
    public String callDeptAndParam(String id) {
        return "{\n" +
                "\"code\":\"callDeptAndParam404\",\n" +
                "\"msg\":\"Feign熔断返回\"\n" +
                "}";
    }

    @Override
    public String callDeptAndParam2(String id) {
        return null;
    }

    @Override
    public String callDeptPost(Map<String, String> map) {
        return null;
    }

    @Override
    public String dept() {
        return "Dept服务熔断";
    }
}
